﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Quaack
{
    public partial class Site_Ingelogd : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Logout(object sender, EventArgs e)
        {
            HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
            HttpContext.Current.Response.Cache.SetNoServerCaching();
            HttpContext.Current.Response.Cache.SetNoStore();

            System.Threading.Thread.Sleep(3000);
            
            //Melding tonen dat er wordt uitgelogd
            Response.AddHeader("refresh", "3; URL=~/Default.aspx");
            //session afsluiten niet doen. Er gaat dan teveel uit
//          Response.AddHeader(   

        }
    }
}